package com.example.wujinapi.entity;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serializable;

/**
 * (Productspecification)表实体类
 *
 * @author makejava
 * @since 2023-07-31 23:01:46
 */
@Data
@JsonIgnoreProperties(allowSetters = true, value = {"token"})
public class Productspecification extends extendField{
    
    private Integer id;
    //主产品id
    private Integer mainpid;
    //规格图片
    private String spphoto;
    //规格型号
    private String sptype;
    //规格名称
    private String spname;
    //规格尺寸
    private String spsize;
    //规格重量
    private String spweight;
    //规格材料
    private String spmaterials;
    //规格颜色
    private String spcolor;
    //规格功能
    private String spfunction;
    //规格特性
    private String spcharacter;
    //使用说明
    private String spdesc;
    //原价
    private Double sporiginprice;
    //折扣价
    private Double spdiscountprice;
    //库存
    private Integer spstore;
    //已售
    private Integer spselled;
    //产品厂家
    private String spfactory;
    //产品标签
    private String sptags;
    //规格排序 值越高越靠前
    private Integer spsort;

    //1显示 0不显示
    @JsonIgnore
    private Integer isshow;

    @JSONField(name="createtime", format="yyyy-MM-dd HH:mm:ss")
    private Date createtime;

}

